import ReactDOM from "react-dom";
import App from "./App.jsx";
// import Router from './router/index'

ReactDOM.render(<App />, document.getElementById("root"));

const title = [
  "你快回来,我一人承受不来",
  "你快回来,生命因你而精彩",
  "你快回来,把我的思念带回来",
];

var x = 0;
console.info(
  "%s",
  ":fff::fff::::::::::::::::::::::::::DDDDD::::::::::::::::::::\n fffffffff:::::::::::::::::::::::::DDiiiGDD::::::::::::::::::\n fffffffff::::::DDDDD:::::::::::::DDiiiiiifD:::::::::::::::::\n fffffffff::::DDiiiiiDDD:::::::::DDiiiiiiiiiDD:::::::::::::::\n :fffffff:::::DiiiiiiiiDD::::::::DiiiiiiiiiiiDD::::::::::::::\n ::ffffff::::DiiiiiiiiiiDD::::::DGiiiiiiiiiiiiDD:::::::::::::\n ::fffff:::::DiiiiiiiiiiiDD:::::DiiiiiiiiiiiiiiDD::::::::::::\n ::::ff::::::DiiiiiiiiiiiiD::::DDiiiiiiiiiiiiiiiD::::::::::::\n :::::::::::DiiiiiiiiiiiiiiD:::DiiiiiiiiiiiiiiiitD:::::::::::\n :::::::::::DiiiiiiiiiiiiiiLD:DDiiiiiiiiiiiiiiiiiD:::::::::::\n ::::::::::DDiiiiiiiiitDDDDDDDDDDDDDfiiiiiiiiiiiiiD::::::::::\n ::::::::::DiiiiiijDDDDDjiiiiiiiiiiGDDDDtiiiiiiiiiDD:::::::::\n ::::::::::DiiiLDDDfiiiiiiiiiiiiiiiiiiitDDDiiiiiiiiD:::::::::\n :::::::::DDiDDfiiiiiiiiiiiiiiiiiiiiiiiiiiGDDiiiiiiDD::::::::\n :::::::::DDDiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiDDiiiiiiD::::::::\n ::::::::DDGiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiD::::::::\n :::::::DDiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiD::::::::\n ::::::DDiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiitD:::::::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iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiijjjD:\n :::DiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiijjjD:\n ::::DiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiijjD:\n :::::DiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiD:\n :::::DiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiD:\n :::::DGiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiD:\n ::::::Diiiiiiiiiiiiii            ;iiiiiiiiiiiiiiiiiiiiiiijDD\n ::::::Diiiiiiiiiiii                ;iiiiiiiiiiiiiiiiiiiijjLD\n ::::::Diiiiiiiiiii                   iiiiiiiiiiiiiiiiiiijjjD\n ::::::Diiiiiiiiii                     iiiiiiiiiiiiiiiiiijjjD\n ::::::Diiiiiiiiii                      iiiiiiiiiiiiiiiiiijjD"
);

document.addEventListener("visibilitychange", function () {
  // 页面变为不可见时触发

  if (document.visibilityState == "hidden") {
    document.title = title[x];
    x = (x + 1) % 3;
    document.getElementById("tagIcon").href = "/leave.gif";
  }
  // 页面变为可见时触发
  if (document.visibilityState == "visible") {
    document.getElementById("tagIcon").href = "/test.gif";

    document.title = "Capoo 不止课设";
  }
});
